var browser = navigator.userAgent.toLowerCase();

var isIE = ( (browser.indexOf("msie") != -1) && (browser.indexOf("opera") == -1) && (browser.indexOf("webtv") == -1));
var isMozilla = (navigator.appCodeName.toLowerCase().indexOf("mozilla") != -1);
var isOpera = (browser.indexOf("opera") != -1);

if (navigator.userAgent.match('rv:1\.9')) {
	var isFirefox3 = true;
} else {
	var isFirefox3 = false;
}

var browserVersion = parseFloat( browser.substring( browser.indexOf('msie ') + 5 ) );

var os = navigator.platform.toLowerCase();
var isLinux = (os.indexOf("linux") != -1);
